package OOP.day08.AnimalDemo;

public class Dog extends Animal {

    public Dog() {
    }

    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    //重写eat方法
    @Override
    public void eat() {
        System.out.println(color + "色的" + age + "岁的狗" + name + "在吃骨头");
    }

    public void lookHome() {
        System.out.println(color + "色的" + age + "岁的狗" + name + "正在看家");
    }
}
